<%
if asset.comments.size >0
counter = asset.comments.size
9.times do |i|
break if i == asset.comments.size 
comment = asset.comments[i]
#@opus.comments.each do |comment|%>
<div class="comment<%=counter.divmod(2)[1] == 0 ? 1 : ""%>">
    <div class="comment-photo">
    <%unless comment.user.image.nil? or comment.user.image == ""%>
    <%=image_tag url_for_file_column(comment.user, "image", "thumb") %>
    <%else%>
    <%=image_tag "gfx/avatar24x30.jpg"%>
    <%end%>
    </div>
    <div class="comment-text">
        <b>#<%=counter%></b> <span class="liline">-</span> <span class="name<%=comment.user.gender%>"><%=link_to comment.user.nickname, :controller => "profile", :action => "view", :id => comment.user.id%></span><span class="comment-date"> | <%=comment.created_at.loc("%Y-%m-%d %H:%M")%></span>
        <%=link_to(image_tag("icons/comment_delete.png",:border=>0),:controller=>"comment",:action=>"destroy",:id=>comment.id) if session[:user] == comment.user_id%>
        <!--<div class="comment-title"><%=comment.title%></div>-->
        <div class="comment-contentredborder"><%=comment.comment%></div>
    </div>
</div>
<%counter = counter - 1
end
else%>
<font face="Verdana" color="#666666"><span style="font-size:7pt;">(no comments)<br></span></font>
<%end%>